﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcVehicleInsurance.Models;

namespace MvcVehicleInsurance.Areas.Admin.Controllers
{
    public class ManagementController : Controller
    {
        //
        // GET: /Admin/Quanly/

        public ActionResult ThemAccount()
        {
            return View();
        }
        public ActionResult Danhsach()
        {
            return View();
        }
        public ActionResult XulythemAccount(string Username, string Password,string fullname, string gender, string Address, string Email)
        {
            Account acm = new Account();
            acm.ThemAccount(Username, Password, fullname, gender, Address, Email);
            return RedirectToAction("ThemAccount", "Quanly");
        }
        public ActionResult danhsach()
        {
            Account acm = new Account();

            ViewData["DsAcc"] = acm.Danhsach();
            return View();
        }

    }
}
